package com.example.demo.common.http;

public enum RestCode implements ErrorCode {
    SUCCESS("000000", "操作成功"),
    BUSINESS_EXCEPTION("999998", "业务异常"),
    FAIL("999999", "操作失败"),
    ;

    private final String code;
    private final String msg;

    RestCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
